#ifndef COMMON_H
#define COMMON_H

#include <msp430f5529.h>
#include <stdbool.h>
#include <stdint.h>

#define CPU_F           ((double)16000000) 
#define delay_us(x)     __delay_cycles((long)(CPU_F*(double)x/1000000.0)) 
#define delay_ms(x)     __delay_cycles((long)(CPU_F*(double)x/1000.0)) 

typedef unsigned char u8;
typedef unsigned int u16;
typedef unsigned long int u32;

#endif
